﻿<UserControl x:Class="DACU.UserControls.Player.VolumePopup"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="33" d:DesignWidth="482">
    <Grid Margin="2">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto" />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<ToggleButton Name="tbMute" x:FieldModifier="private" Height="{Binding ElementName=sVolume, Path=ActualHeight}" Click="tbMute_Click" Padding="0">
			<Image Source="{Binding ElementName=tbMute, Path=IsChecked, Converter={StaticResource BoolToMute}}" />
		</ToggleButton>
		<Slider Name="sVolume" x:FieldModifier="private" Maximum="100" Value="100" ValueChanged="sVolume_ValueChanged" Grid.Column="1" IsMoveToPointEnabled="True" IsSnapToTickEnabled="True" />
		<!--<ToggleButton Name="tbVolume" x:FieldModifier="private" Content=">>">
		</ToggleButton>
		<Popup IsOpen="{Binding IsChecked, ElementName=tbVolume}" Width="256">
			<StackPanel Background="DarkSeaGreen">
				<Slider Name="sVolume" x:FieldModifier="private" Maximum="100" Value="100" ValueChanged="sVolume_ValueChanged"></Slider>
			</StackPanel>
		</Popup>-->
	</Grid>
</UserControl>
